const express = require('express');
const router = express.Router();

router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 100; i++) content.push({
        id: `id${i}`,
        dealerCode: `string${i}`,
        brandCode: '奇瑞',
        prtDataType: 1,
        code: `JHD2020-02-01-${i}`,
        oldStatus: 'string1',
        nowStatus: 'string2',
        partSaleOrderCodes: 'XSDD0001,XSDD00002',
        confirmerName: 'string',
        confirmTime: '2020-02-12T11:27:39.715Z',
        remark: 'string',
        content: '单据修改内容',
    });

    res.json({
        message: 'ok',
        payload: {
            content,
            totalElements: 40,
        }
    });
});

router.post('/', (req, res) => {
    res.json({
        message: 'success',
        payload: '成功'
    });
});
module.exports = router;
